{% extends "base.html" %}
{% block title %}Edit Post{% endblock %}
{% block page_content %}
<link rel="stylesheet" href="{{ url_for('static',filename='editormd/css/editormd.css') }}" />
<div class="row">
    <h1 class="text-center">修改博文分类</h1>

    <form method="post" action="{{ url_for('.update_posttype',id=id) }}" onsubmit="return confirm('确定修改吗?')">
        {{ form.hidden_tag() }}
        <div class="form-group">
            {{ form.name.label }}
            {{ form.name(class_='form-control',placeholder_='请输入分类名') }}

        </div>
        <div class="form-group">
            {{ form.explain.label }}
            {{ form.explain(class_='form-control',placeholder_='请输入简介') }}
        </div>
        <div class="text-center" style="margin-top:50px">
            <input class="btn btn-primary" type="submit" value="更新">
        </div>
    </form>
</div>
{% endblock %}